package com.jobsleaf.selection.provider;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Random;

public class TableUtility 
{ 
	static List<Person> peopleList;
	public static List<Person> getAuditList()
	{

		String[] name = new String[]{"Ashok","Kumar","Ramya","Sneha"};
		String[] dateOfbirth = new String[]{"30","20","31","22"};
		String[] fatherName = new String[]{"aaa","bbb","ssss","sffff"};
		String[] emaidId = new String[]{"1@yahoo.com","2@yahoo.com","3@yahoo.com","4@yahoo.com"};
		Random random = new Random();
		peopleList = new ArrayList<Person>();

		for (int i = 0 ;i<name.length;i++)
		{
			HashMap<String, String> address= new  HashMap<String, String>();
			address.put("Street", i + " st main");
			address.put("House No", random.nextInt(10)+"");
			address.put("City", "Bangalore");
			address.put("Country", "India");
 			Person person = new Person(name[i], dateOfbirth[i], fatherName[i], emaidId[i], address);
			peopleList.add(person);
		}
		return peopleList;
	}
	
}
